'''
Created on Jun 3, 2011

@author: Pavel_Vinogradov
'''


def trac2gch(text):
    '''Convert trac murkup into GCH wiki syntax
        GCH syntax: http://code.google.com/p/support/wiki/WikiSyntax
        Trac syntax: 
        
    '''
    substitutions = {
        "'''" : "*",
        "''"  : "_",
    }
    
    for key, value in substitutions.items():        
        text = text.replace(key, value)
    return text